package com.usian;

import com.usian.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "ribbon-provider")
public interface UserFeign {

    @RequestMapping("/user/findById/{id}")
    public User findById(@PathVariable Integer id);
}
